package Collectionhomework;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo {
    public static void main(String[] args) {
//        Collection c = new ArrayList();
//        c.add("123");
//        c.add("456");
//        c.add("789");
//        System.out.println(c);
//
//        System.out.println(c.size());
//
//        boolean bool = c.isEmpty();
//        System.out.println(bool);
//
//        c.clear();
//        System.out.println(c);
//
//        System.out.println(c.contains("123"));
//        System.out.println(c.remove("456"));
        Collection c = new ArrayList();
        c.add("123");
        c.add("456");
        c.add("789");
        System.out.println(c);

        System.out.println(c.size());

        boolean bool = c.isEmpty();
        System.out.println(bool);

        c.clear();
        System.out.println(c);

        System.out.println(c.contains("123"));
        System.out.println(c.remove("456"));








    }
}
